let viewRouter = [];
// let routerMap = {};
const files = require.context("./", true, /index.js$/);
files.keys().forEach(key => {
	if (key === "./index.js") return false;
	if (files(key) && files(key).default && files(key).default.length == 0) return false;
	let routes = files(key).default;
	viewRouter.push.apply(viewRouter, routes);
	// routes.forEach(v => {
	// 	routerMap[v.path] = v;
	// });
});
export default viewRouter;
